<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add product</title>
</head>
<body>
<f:view>
	<h1> <h:outputText value="Adding a new Product"></h:outputText> </h1>
	<h:form>
	<h:messages></h:messages>
	<h:panelGrid columns="2">
		<h:outputText value="code"></h:outputText>
		<h:inputText value="#{productFace.selectedProduct.code}"></h:inputText>
		<h:outputText value="name"></h:outputText>
		<h:inputText value="#{productFace.selectedProduct.name}"></h:inputText>
		<h:outputText value="Number of Itens"></h:outputText>
		<h:inputText value="#{productFace.selectedProduct.numberOfItens}"></h:inputText>
		<h:outputText value="Price"></h:outputText>
		<h:inputText value="#{productFace.selectedProduct.price}"></h:inputText>
	</h:panelGrid>
	<h:commandButton value="Add" action="#{productFace.finishAddProduct}"></h:commandButton>
	<h:commandButton value="Cancel" action="gotoListProducts"></h:commandButton>
	</h:form>
</f:view>
</body>
</html>